package serveur;

import static org.junit.Assert.*;

import objet.Point;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * Classe de test de la classe InvokedMethodsImpl
 * @author Kevin Pozderec,Faycal Abka
 *
 */
public class TestInvokedMethodsImpl {
	
	InvokedMethodsImpl imi;

	@Before
	public void setUp() throws Exception {
		imi = new InvokedMethodsImpl();
	}

	@After
	public void tearDown() throws Exception {
		imi = null;
	}

	@Test
	public void testPointMove() {

		Point ptest = new Point(1,5);
		imi.pointMove(ptest, 5, 6);
		assertTrue ( ptest.getX() == 5 && ptest.getY() == 6);
		
		ptest = new Point(6,15);
		imi.pointMove(ptest, -1, 7);
		assertTrue ( ptest.getX() == -1 && ptest.getY() == 7);

	}

}
